package com.md.drcs.dicom.entity;

import com.md.common.utils.json.JSONUtil;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * 功能描述：u_user_patient表实体
 * 
 * @author liuzg1@guahao.com
 * @version 1.0
 * @date 2018/12/11 18:04
 * @since JDK 1.8
 */
@Table(name = "u_user_patient")
public class UserPatientEntity implements Serializable{
	
	//columns START
	/**
	 * id
	 */
	@Id
	@Column(name = "id")
	private Integer id;
	/**
	 * user_id
	 */
	@Column(name = "user_id")
	private Integer userId;
	/**
	 * patient_id
	 */
	@Column(name = "patient_id")
	private Integer patientId;
	//columns END 数据库字段结束
	
	//get and set
	public void setId(Integer id) {
		this.id = id;
	}
	
	public Integer getId() {
		return this.id;
	}
	
	public void setUserId(Integer userId) {
		this.userId = userId;
	}
	
	public Integer getUserId() {
		return this.userId;
	}
	
	public void setPatientId(Integer patientId) {
		this.patientId = patientId;
	}
	
	public Integer getPatientId() {
		return this.patientId;
	}

	public String toString() {
		return JSONUtil.toJSON(this);
	}
	
}

	
